


def read_animal(file_path):

	try:
		anlist=[]
		with open(file_path,'r') as fileobj:
			anlist = fileobj.read()
	except:
			print("the file you pointed is no exist")

	else:
		print("read animal:")
		print(anlist)

if __name__=='__main__':

	file_path1='cat.txt'
	read_animal(file_path1)

	file_path1='dog.txt'
	read_animal(file_path1)
